package com.yzd.learnjava.reusing;

import com.yzd.learnjava.util.Print;

public class Cartoon extends Drawing{
	
	public Cartoon() {
		Print.print("Cartoon Constructor");
		Print.print(this);
	}

	public static void main(String[] args) {
		Cartoon c = new Cartoon();
	}

}

class Art{
	Art(){
		Print.print("Art Constructor");
		Print.print(this);
	}
}

class Drawing extends Art{
	Drawing(){
		Print.print("Drawing Constructor");
		Print.print(this);
	}
}


